<HTML>
<HEAD>
<TITLE>DefaultProjectName - CXServerConnection</TITLE>
<script type="text/javascript">
  var relPathToCommmon = "../../common/";
  var relPathToHelpDir = "../../common/help/";
</script>
<script type="text/javascript" src="../../common/jsdyn.js" language="JavaScript"></script>
<script type="text/javascript" src="../../common/js.js" language="JavaScript"></script>
<script type="text/javascript" src="leftmenu.js" language="JavaScript"></script>
<script type="text/javascript">
  var toSearchPage     = "_search','../../search";
  Body1();
</script>
<div class="headerPage">CXServerConnection</div>
<div class="path"><a href="#" OnMouseOver="link('','../../index',this)" class="pathLink">OOXlib</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_dir','include0',this)" class="pathLink">include</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_class','CXServerConnection4032',this)" class="pathLink">CXServerConnection</A><img src="../../common/path-arrow.gif" class="path-arrow"><span class="pathNonLink">CXServerConnection</span></div>
<script type="text/javascript">
 Body2();
 BodyLeftMenuStart();
WriteLeftMenu("","","","");
 BodyLeftMenuEnd();
 Body3();
</script>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','CXServerConnection2194299478','_description',this)" class="tabLinkInActive">Description</a></span>
<span class="tabActive"><a href="#" OnMouseOver="linkTab('_member','CXServerConnection2194299478','_source',this)" class="tabLinkActive">Source</a></span>
<span class="tabInActiveGrayout"><span class="tabLinkGrayout">Call Graph</span></span>
<script type="text/javascript">
 Body4();
</script>
<div class="contentAirTop"></div>
<div class="paragraph2NoTopPadding">Start Line: 64</div>
<pre class="codeExamples">
 <a href="#" onMouseOver="link('_member','CXServerConnection2194299478',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>CXServerConnection&nbsp;&nbsp;()',CAPTION,'<strong>Brief description</strong><BR>Constructor.');" onMouseOut="return nd();">OOXlib::CXServerConnection::CXServerConnection</a>()
: <a href="#" onMouseOver="link('_member','m_pDisplay1590299146',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::Display *&nbsp;&nbsp;m_pDisplay ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_pDisplay</a>(NULL),  <a href="#" onMouseOver="link('_member','m_iScreensCount1590299146',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>int&nbsp;&nbsp;m_iScreensCount ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_iScreensCount</a>(0), <a href="#" onMouseOver="link('_member','m_iDefaultScreenNumber1590299146',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>int&nbsp;&nbsp;m_iDefaultScreenNumber ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_iDefaultScreenNumber</a>(0) {
    // For systems, which are not POSIX-conformant, we try to manually obtain the value of the "DISPLAY" environment variable.
    const char *dispEnv = ::getenv("DISPLAY");
    if(NULL == dispEnv) {
        m_pDisplay = ::XOpenDisplay(NULL);
        if(NULL == m_pDisplay) {
            <a href="#" onMouseOver="link('_member','OOXLib_THROW3402324798',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>define&nbsp;&nbsp;OOXLib_THROW&nbsp;&nbsp;(ctor_name )',CAPTION,'<strong>Brief description</strong><BR>The main OOXlib throw replacement macro.');" onMouseOut="return nd();">OOXLib_THROW</a>(CNULLXOpenDisplayException);
        }
    } else {
        m_pDisplay = ::XOpenDisplay(dispEnv);
        if(NULL == m_pDisplay) {
            <a href="#" onMouseOver="link('_member','OOXLib_THROW3402324798',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>define&nbsp;&nbsp;OOXLib_THROW&nbsp;&nbsp;(ctor_name )',CAPTION,'<strong>Brief description</strong><BR>The main OOXlib throw replacement macro.');" onMouseOut="return nd();">OOXLib_THROW</a>(CGetenvXOpenDisplayException);
        }
    }
    // So, if there are no screens available, it's not an error of the CXServerConnection class, that's why we don't need to check.
    m_iScreensCount = ::XScreenCount(m_pDisplay);
}
</pre><div class="contentAirBottom"></div>
<script type="text/javascript">
 Body5();
Statistics("","","","","");
 Body6();
SetPageTab('_member','_source');
</script>
